﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GONES.Tools.Common;
using GONES.Model;

namespace GONES.IBLL
{
    public interface IS_UsersManager
    {
         string ErrMsg { get; }

         S_Users Get(string id);

        void Add(GONES.Model.S_Users users);

        void Edit(GONES.Model.S_Users users);

        void Delete(string id);

        void ChangePassWord(string id, string oldpass, string newpass);

        void ChangeLoginName(string oldloginname, string newloginname);

        bool CheckUser(string loginid, string tel, ref S_Users users);

        LoginInfo Login(string loginname, string loginpass);

        void ResetPassWord(string id);

        IList<S_Users> List(IList<DataFilter> filters, int pageindex, int pagesize, ref  long recordcount);

      
        long GetUserCount(string departid);
    }
}
